import Vue from 'vue'
import VueRouter from 'vue-router'
const Todo1 = () => import('../views/Todo1.vue')
const Todo2 = () => import('../views/Todo2.vue')
const Todo3 = () => import('../views/Todo3.vue')

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Todo1',
    component: Todo1
  },
  {
    path: '/todo2',
    name: 'Todo2',
    component: Todo2
  },
  {
    path: '/todo3',
    name: 'Todo3',
    component: Todo3
  }
]

const router = new VueRouter({
  routes
})

export default router
